<?php
/**
 * @copyright:Copyright (C) 2010-2014 LiZaoNet Inc. (http://www.lizaonet.com)
 * @license: http://www.lizaonet.com
 * @link:http://www.lizaonet.com
 * @since:File available since Release v1.0
 * @Created by Azrael
 * @User: Azrael
 * @Date: 2016/1/26
 * @Time: 16:48
 *
 */
namespace Home\Model;
use Think\Model;

class NewslistModel extends Model{
    public function getNewsListByPostion($position,$fid){
        $list = $this->where(array("position"=>$position,"fid"=>$fid))->select();
        return $list;
    }

    public function getNewsList($fid){
        $list = $this->where(array("fid"=>$fid))->select();
        return $list;
    }
}